package com.future.future.movie.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.future.future.commons.utils.PageUtils;
import com.future.future.commons.utils.Query;

import com.future.future.movie.dao.MovieInfoDao;
import com.future.future.movie.entity.MovieInfoEntity;
import com.future.future.movie.service.MovieInfoService;


@Service("movieInfoService")
public class MovieInfoServiceImpl extends ServiceImpl<MovieInfoDao, MovieInfoEntity> implements MovieInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MovieInfoEntity> page = this.page(
                new Query<MovieInfoEntity>().getPage(params),
                new QueryWrapper<MovieInfoEntity>()
        );

        return new PageUtils(page);
    }

}